﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Inovout.Data.Domain
{

    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public class DataPropertyAttribute : Attribute
    {
        public DataPropertyAttribute(string alais, DataType type, string format, bool required, object min, object max)
        {
            this.Alais = alais;
            this.DataType = type;
            this.DataFormat = format;
            this.Required = required;
            this.Min = min;
            this.Max = max;
        }
        //public string DisplayFormat_String { get; set; }
        public int? Order { get; set; }
        public string Alais { get; private set; }
        public DataType DataType { get; private set; }
        public string DataFormat { get; private set; }
        public bool Required { get; private set; }
        public object Min { get; private set; }
        public object Max { get; private set; }

        public string QueryFormat { get; set; }
    }
}
